/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ia_multiagent1;

/**
 *
 * @author Baptiste, Thibault
 */
public class Pheromone {
private int x;
private int y;
private int timeRemainAlive;


    public Pheromone(int x, int y, int timeRemainAlive) {
        this.x = x;
        this.y = y;
        this.timeRemainAlive = timeRemainAlive;
    }

    public void decreaseTimeRemainAlive() throws Exception {
        this.timeRemainAlive--;
             if ( this.timeRemainAlive<0){
                 throw new Exception("problem. la pheromone aurait du disparaitre");   
        }
    }
        public int getTimeRemainAlive() {
        return timeRemainAlive;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }
    
}
